<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta charset="utf-8" />
        <title>网站后台系统管理</title>

        <meta name="description" content="" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
        <!-- bootstrap & fontawesome -->
        <link rel="stylesheet" href="__PUBLIC__/assets/css/bootstrap.css" />
        <link rel="stylesheet" href="__PUBLIC__/assets/css/font-awesome.css" />


        <!-- page specific plugin styles -->

        <!-- text fonts -->
        <link rel="stylesheet" href="__PUBLIC__/assets/css/ace-fonts.css" />

        <!-- ace styles -->
        <link rel="stylesheet" href="__PUBLIC__/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />

        <!--[if lte IE 9]>
                <link rel="stylesheet" href="__PUBLIC__/assets/css/ace-part2.css" class="ace-main-stylesheet" />
        <![endif]-->

        <!--[if lte IE 9]>
          <link rel="stylesheet" href="__PUBLIC__/assets/css/ace-ie.css" />
        <![endif]-->

        <!-- inline styles related to this page -->
        <link rel="stylesheet" href="__PUBLIC__/assets/css/slackck.css" />
        <!-- ace settings handler -->
        <script src="__PUBLIC__/assets/js/ace-extra.js"></script>

        <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

        <!--[if lte IE 8]>
        <script src="__PUBLIC__/assets/js/html5shiv.js"></script>
        <script src="__PUBLIC__/assets/js/respond.js"></script>
        <![endif]-->


    </head>

    <body class="no-skin">
        <!-- #section:basics/navbar.layout -->
        <div id="navbar" class="navbar navbar-default    navbar-collapse">
            <script type="text/javascript">
                try {
                    ace.settings.check('navbar', 'fixed')
                } catch (e) {
                }
            </script>

            <div class="navbar-container" id="navbar-container">
                <!-- #section:basics/sidebar.mobile.toggle -->
                <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                    <span class="sr-only">Toggle sidebar</span>

                    <span class="icon-bar"></span>

                    <span class="icon-bar"></span>

                    <span class="icon-bar"></span>
                </button>

                <!-- /section:basics/sidebar.mobile.toggle -->
                <div class="navbar-header pull-left">
                    <!-- #section:basics/navbar.layout.brand -->
                    <a href="{:U('Index/index')}" class="navbar-brand">
                        <small>
                            <i class="fa fa-leaf"></i>
                            Mr System
                        </small>
                    </a>

                    <!-- /section:basics/navbar.layout.brand -->

                    <!-- #section:basics/navbar.toggle -->
                    <button class="pull-right navbar-toggle navbar-toggle-img collapsed" type="button" data-toggle="collapse" data-target=".navbar-buttons">
                        <span class="sr-only">Toggle user menu</span>

                        <img src="__PUBLIC__/assets/avatars/user.jpg" alt="Jason's Photo" />
                    </button>

                    <!-- /section:basics/navbar.toggle -->
                </div>

                <!-- #section:basics/navbar.dropdown -->
                <div class="navbar-buttons navbar-header pull-right  collapse navbar-collapse" role="navigation">
                    <ul class="nav ace-nav">
                        <!-- #section:basics/navbar.user_menu -->
                        <li class="light-blue">
                            <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                                <img class="nav-user-photo" src="__PUBLIC__/assets/avatars/user.jpg" alt="Jason's Photo" />
                                <span class="user-info">
                                    <small>Welcome,</small>
                                    {$_COOKIE['admin_username']}
                                </span>

                                <i class="ace-icon fa fa-caret-down"></i>
                            </a>

                            <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                                <li>
                                    <a href="#">
                                        <i class="ace-icon fa fa-cog"></i>
                                        个人设置
                                    </a>
                                </li>

                                <li>
                                    <a href="profile.html">
                                        <i class="ace-icon fa fa-user"></i>
                                        会员中心
                                    </a>
                                </li>

                                <li class="divider"></li>

                                <li>
                                    <a href="javascript:;"  id="logout">
                                        <i class="ace-icon fa fa-power-off"></i>
                                        注销
                                    </a>
                                </li>
                            </ul>
                        </li>

                        <!-- /section:basics/navbar.user_menu -->
                    </ul>
                </div>

                <!-- /section:basics/navbar.dropdown -->
            </div><!-- /.navbar-container -->
        </div>
        <script src="__PUBLIC__/assets/js/jquery.min.js"></script>
        <script src="__PUBLIC__/assets/js/jquery.form.js"></script>
        <script src="__PUBLIC__/layer/layer.js"></script>
        
        <!-- webuploader lode -->
        <link rel="stylesheet" href="__PUBLIC__/webuploader/css/webuploader.css" />
        <script charset="utf-8" src="__PUBLIC__/webuploader/js/webuploader.js"></script>
        <script charset="utf-8" src="__PUBLIC__/webuploader/js/getting-started-qiniu.js"></script>

        <!-- kindertor lode -->
        <link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css" />
        <script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor-all-min.js"></script>
        <script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh-CN.js"></script>
        <script>

        var editor;
        KindEditor.ready(function(K) {
        	editor = K.create('textarea[name="kind_text"],textarea[name="kind_text1"],textarea[name="kind_text2"],textarea[name="kind_text3"]', {
        		resizeType : 1,
        		width:"80%",
        		height:"300px",
        		filterMode: false, //是否开启过滤模式
        		allowPreviewEmoticons : false, //是否预览表情
        		allowImageUpload : true,       //是否开启本地图片上传
        		afterBlur: function(){this.sync();},
        		items : [
        			'source','clearhtml','|','fontname', 'fontsize', '|', 'preview','|','forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
        			'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        			'insertunorderedlist', '|', 'emoticons', 'image', 'link']
        	});
        });
       </script>

        <script type="text/javascript">
                                    $(document).ready(function () {
                                        $("#logout").click(function () {
                                            layer.confirm('你确定要退出吗？', {icon: 3}, function (index) {
                                                layer.close(index);
                                                window.location.href = "{:U('Login/logout')}";
                                            });
                                        });
                                    });
        </script>
